import 'package:flutter/material.dart';

import '../bean/i_movie_favorite_entity.dart';

class FavoriteProvider extends ChangeNotifier{
  final List<MovieFavorite> _favoriteList = [];

  List<MovieFavorite> get favoriteList => _favoriteList;

  set favoriteList(List<MovieFavorite> value) {
    _favoriteList.addAll(value);
    notifyListeners();
  }

  set removeItem(int index){
    _favoriteList.removeAt(index);
    notifyListeners();
  }
}

